<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Docontract {

	public function showSide($data,$contentpage)
	{
		//do something
	}

	public function delete($con_Id)
	{
		$CI = & get_instance();
		$sql = "DELETE FROM contract WHERE Contract_ID = '".$con_Id."'";
		$CI->db->query($sql);
	}

	public function getStatus($con_Id)
	{
		$CI = & get_instance();
		$sql = "select Status FROM contract WHERE Contract_ID = '".$con_Id."'";
		$res = $CI->db->query($sql);
		foreach($res->result() as $row)
			return $row->Status;
	}
}

// END Contract class

/* End of file Contract.php */
/* Location: ./php_application/libraries/Contract.php */